#include<stdio.h>

double function(double x,int n)
{
	if (n==1)
		return x;
	else if (n%2==0)
		return function(x,n/2)*function(x,n/2);
	else 
		return x*function(x,(n-1)/2)*function(x,(n-1)/2);
}

int main()
{
	int n;
	double x;
	printf("x=");//输入的数 
	scanf("%lf",&x);
	printf("n=");//多少次方，输入需为双浮点型数 
	scanf("%d\n",&n);
		printf("结果为%lf",function(x,n));
	return 0;
}